package com.cole.miniapp.project.service;

import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult;
import cn.binarywang.wx.miniapp.bean.WxMaPhoneNumberInfo;
import cn.binarywang.wx.miniapp.bean.WxMaUserInfo;
import com.cole.miniapp.project.domain.FcmUser;
import com.cole.miniapp.project.domain.FcmUserConsumption;
import com.cole.miniapp.project.domain.FcmUserFraction;

import java.util.List;

/**
 * @Author: Ceanie
 * @Despriction:
 * @Date: Created in 21:27 2019-05-16
 * @Modify By:
 **/
public interface UserService {

    FcmUser getUserById(Long id);

    FcmUser userLogin(WxMaJscode2SessionResult wxMaJscode2SessionResult);

    FcmUser userInfo(FcmUser fcmUser, WxMaUserInfo wxMaUserInfo);

    FcmUser userPhone(FcmUser fcmUser, WxMaPhoneNumberInfo wxMaPhoneNumberInfo);

    List<FcmUserConsumption> queryUserSpend(Long userId, long state, int page);

    List<FcmUserFraction> userFractionDetail(Long userId, long state, int page);

}
